<script type="text/javascript">
	$("body").css("background-color",rgb(247,247,247));
</script>
<div class="row">
	<div class="row">
		<span class="col-md-4">
			<img src="/src/img/accao.png">
		</span>
		<span class="col-md-4">
			<form method="get" action="">
				<div class="input-group"  style="margin-top:60px">
					<input type="search" name="search" class="form-control" value="{$_GET['search']}">
					<span class="input-group-btn">
						<button class="btn btn-info">搜索</button>
					</span>
				</div> 
			</form>
		</span>
		<span class="col-md-4">
			<p class="text-right">
				<img src="/src/img/search.png"  style="margin-top:50px">
			</p>
		</span>
		
	</div>

	<div class="row" style="margin-top:30px;margin-bottom:30px;background-color:#FFFFFF;padding:20px">
		<div class="col-md-1" >
			<a href="/index.php/Index/search/search/{$_GET['search']}/type/all" class="
				<?php
					if(!$_GET['type'] || $_GET['type']=="all"){
						echo "btn btn-success btn-sm";
					}else{
						echo "btn btn-default btn-sm";
					}

				?>
			"><span class="glyphicon glyphicon-list">所有分区</span></a>
		</div>

		<div  class="col-md-5 col-md-offset-6" >
			<div class="btn-group text-right">
				<a href="/index.php/Index/search/search/{$_GET['search']}/type/zh" class="
				<?php
					if($_GET['type']=="zh"){
						echo "btn btn-success btn-sm";
					}else{
						echo "btn btn-default btn-sm";
					}

				?>
				"><span class="">综合</span></a>
				<a href="/index.php/Index/search/search/{$_GET['search']}/type/gz" class="
				<?php
					if($_GET['type']=="gz"){
						echo "btn btn-success btn-sm";
					}else{
						echo "btn btn-default btn-sm";
					}

				?>
				"><span class="">工作.感情</span></a>
				<a href="/index.php/Index/search/search/{$_GET['search']}/type/dm" class="
				<?php
					if($_GET['type']=="dm"){
						echo "btn btn-success btn-sm";
					}else{
						echo "btn btn-default btn-sm";
					}

				?>
				"><span class="">动漫文化</span></a>
				<a href="/index.php/Index/search/search/{$_GET['search']}/type/mh" class="
				<?php
					if($_GET['type']=="mh"){
						echo "btn btn-success btn-sm";
					}else{
						echo "btn btn-default btn-sm";
					}

				?>
				"><span class="">漫画.轻小说</a></a>
				<a href="/index.php/Index/search/search/{$_GET['search']}/type/yx" class="
				<?php
					if($_GET['type']=="yx"){
						echo "btn btn-success btn-sm";
					}else{
						echo "btn btn-default btn-sm";
					}

				?>
				"><span class="">游戏</span></a>
			
			</div>
		</div>
	</div>

	<div class="row" style="margin-top:30px;margin-bottom:30px;background-color:#FFFFFF">
		<volist name="post" id="p" >
			<div class="row" style="margin:20px;">
				<div class="col-xs-2">
					<p>
						<img src="{$p['image']|isimage}" width="177px">
					</p>
					<p>
						<img src="{$p['uid']|uidimage}" width="50px" style="margin-top:-80px;margin-left:140px;">
					</p>	
				</div>
				<div class="col-xs-10">
					<p>
						{$p['pd']|pd} / <a href="/index.php/Index/post/pid/{$p['pid']}">{$p['title']}</a>
					</p>
					<p>
						<small class="text-muted">{$p['uid']|uidname}/发布于{$p['time']|date="Y-m-d H:i",###}/围观：{$p['view']} 评论：{$p['renum']} 收藏：{$p['mark']}</small>
					</p>
					<p class="text-muted">
						<small>{$p['miao']}</small>
					</p>
					<p class="text-muted" style="border-top:dashed 1px rgb(221,221,221)">
						{$p['tag']|posttag}
					</p>
					
				</div>
				
			</div>
			<hr/>
		</volist>
		<div class="row" style="margin:20px;" >
			<p>{$page}</p>
		</div>
	</div>
	
</div>